#!/bin/bash

set -o errexit

echo "#5 entrypoint-build.sh start in docker"

pwd && whoami

java -version

pwd && ls -alh

cd /www/apache-log4j2

pwd
ls -alh

./mvnw -v

# 编译打包
./mvnw \
    --toolchains toolchains-docker.xml \
    clean install \
    -U \
    -e \
    -Dmaven.test.skip=true \
    -Dmaven.compile.fork=true \
    -Dmaven.compiler.debug=true \
    -Dmaven.compiler.debuglevel=lines,vars,source \

pwd && ls -alh

cd target && pwd && ls -alh

echo "#30 entrypoint-build.sh, done in docker"
